﻿using System;
using System.Web;
using eShop.Model;
using eShop.Business;
using ECommerce.Library.ECommerce;
using eShop.Utility;


public partial class product_tooltip : System.Web.UI.Page
{
    private Int32 _ProductId
    {
        get
        {
            return Convert.ToInt32(HttpContext.Current.Request.QueryString["id"]);
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            LoadData();
        }
    }

    private void LoadData()
    {
        Product product = null;
        product = ProductManager.GetProductById(_ProductId);
        String _details_image = ImageResizer.CheckImageMissing(product.ProductImageLargeThumbnail, SiteSettings.NoImageDetailSizeUrl);
        imgProductDetailImage.Src = _details_image.Replace("~/", SiteGlobals.BaseUrl);
    }
}